<div class="yiiForm">

<?php $this->widget('application.components.RequiredMessage'); ?>

<?php
echo CHtml::beginForm();

$this->printHiddenField($model);

echo CHtml::activeHiddenField($model, 'form_type');
echo CHtml::errorSummary($model);
?>

<div class="simple">
<?php


echo CHtml::activeLabelEx($model, 'activity');
echo CHtml::activeTextField($model, 'activity', array (
	'size' => 60,
	'maxlength' => 255
));
?>
</div>
<div class="simple">
<?php


echo CHtml::activeLabelEx($model, 'route_mnemonic');
echo CHtml::activeDropDownList($model, 'route_mnemonic', CHtml::listData(Route::model()->findAll('active=1'), 'mnemonic', 'label'), array (
	'style' => 'width:250px;'
));
?>
</div>
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'description'); ?>
</div><br />
<?php
echo CHtml::activeTextArea($model, 'description', array('rows' => '10', 'cols' => '80'));

$this->widget('application.extensions.elrte.elRTE', array (
	// required object CModel
	'model' => $model,
	// reqired attribute of model
	'attribute' => 'description',
	// see available languages on elRTE documentation site
	'lang' => Yii::app()->user->getLanguage(),
	// editor height in pixels
	'height' => 200,
	// see available toolbars on elRTE documentation site
	'toolbar' => 'normal',
	// use <span> with style or HTML tags
	'styleWithCss' => false,
	// allow user to edit source
	'allowSource' => false
));
/*
$this->widget('application.extensions.jwysiwyg.JWysiwyg', array (
	// required object CModel
	'model' => $model,
	// reqired attribute of model
	'attribute' => 'description',
	'width' => '95%',
	'height' => '400px',
	'right' => true
));
*/
?>


<div class="action">
<?php echo CHtml::submitButton(Yii::t('views', 'Next >')); ?>
</div>

<?php echo CHtml::endForm(); ?>

</div><!-- yiiForm -->